<%@page import="RssEasy.Core.Encrypt"%>
<%@page import="java.util.Calendar"%>
<%@page import="RssEasy.Core.FileExtend"%>
<%@page import="RssEasy.Core.DirectoryExtend"%>
<%@page import="RssEasy.Core.DictionaryExtend"%>
<%@page import="RssEasy.Core.GraphicsExtend"%>
<%@page import="RssEasy.Core.HttpRequestHelper"%>
<%@page import="RssEasy.Core.UploadFileThumbHelper"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    HttpRequestHelper hrh = new HttpRequestHelper(pageContext).request();
    String filename = FileExtend.MakeFileName();
    String url=DirectoryExtend.GetUpfile(request) + filename + ".jpg";
    GraphicsExtend.base64save(hrh.get("base64"), DirectoryExtend.Root(request) + DirectoryExtend.GetUpfile(request) + filename + ".jpg");
    out.print("{\"url\":\"" + url.replace("/upfile/", "") + "\"}");
%>
